package com.leo.base;

import com.leo.quartz.common.request.BaseRequestParam;
import org.springframework.data.domain.PageRequest;

/**
 * 分页查询基类
 *
 * @author liusl
 * @version 1.0
 * @date 2018/12/8 19:56
 */
public abstract class AbstractPageRequest implements BaseRequestParam {

    protected int page;
    protected int limit;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {

    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    @Override
    public PageRequest buildPageRequest() {
        return buildPageRequestBySort();
    }
}
